package com.xuecheng.api.course;

import com.xuecheng.framework.domain.course.CourseMarket;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * 课程营销Api
 */
@Api(value = "课程营销接口", tags = {"课程营销接口,提供课程营销的管理,查询接口"})
public interface CourseMarketControllerApi {
    /**
     * 根据课程id查询课程营销信息
     * @param courseId 课程id
     * @return 查询课程营销信息
     */
    @ApiOperation("根据课程id查询课程营销信息")
    @ApiImplicitParams({
            @ApiImplicitParam(value = "课程id",name = "courseId")
    })
    CourseMarket getCourseMarketById(String courseId);

    /**
     * 根据课程id更新课程信息
     * @param id 课程id
     * @param courseMarket 课程实体类
     * @return 添加是否成功
     */
    @ApiOperation("根据课程id查询课程营销信息")
    @ApiImplicitParams({
            @ApiImplicitParam(value = "课程id",name = "id",required = true,paramType = "path")
    })
    ResponseResult updateCourseMarket(String id,CourseMarket courseMarket);
}
